package com.flurry.android;

import android.util.Log;
import com.flurry.android.caching.ObjectData;
import java.util.HashMap;
import java.util.Vector;
import org.apache.http.NameValuePair;

final class be
  implements AppCloudResponseHandler
{
  be(CacheSyncManager paramCacheSyncManager, String paramString, Vector paramVector)
  {
  }

  public final void handleResponse(AppCloudResponse paramAppCloudResponse)
    throws Exception
  {
    if (paramAppCloudResponse.isSuccessful())
    {
      if (CacheSyncManager.a(this.df).getObjectById(this.de).getKeyValues().equals(this.dj))
      {
        ObjectData localObjectData = CacheSyncManager.a(this.df).w(this.de);
        CacheSyncManager.b(this.df).b(localObjectData);
        CacheSyncManager.c(this.df).s(this.de);
        AppCloudResponseHandler localAppCloudResponseHandler = (AppCloudResponseHandler)CacheSyncManager.b().get(this.de);
        if (localAppCloudResponseHandler != null)
          localAppCloudResponseHandler.handleResponse(paramAppCloudResponse);
        CacheSyncManager.b().remove(this.de);
        return;
      }
      Log.e("CacheSyncManager", "Data was changed during request to server");
      Vector localVector = CacheSyncManager.a(this.df).getObjectById(this.de).getKeyValues();
      for (int i = 0; i < this.dj.size(); i++)
        if (localVector.contains(this.dj.get(i)))
          CacheSyncManager.a(this.df).c(((NameValuePair)this.dj.get(i)).getName(), ((NameValuePair)this.dj.get(i)).getValue(), this.de);
      this.df.synchronize();
      return;
    }
    Log.e("CacheSyncManager", "MODIFY didn't proceed");
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.be
 * JD-Core Version:    0.6.2
 */